package com.cq.service;

import com.cq.pojo.Meeting;
import com.cq.pojo.Room;
import com.cq.pojo.User;
import com.cq.pojo.User_meeting;

import java.util.List;

/**
 * @Author: 悠久的苍穹
 * @Date: 2021/1/25 15:03
 * @Description: 会议服务层
 * @Version: 1.0
 */
public interface MeetingService {

    int addMeeting(Meeting meeting);

    List<Meeting> getMeetings(int page, int limit);

    Meeting getMeetingById(int id);

    int findMeeting(Meeting meeting);

    void addUserMeeting(String uuid, int meeting_id);

    User findUserByMeetingId(String meetingId);

    Room findRoomById(String roomId);

    void updateMeetingStatus(Meeting meeting);

    void addMeetingRoom(int meetingId, int roomId);

    void addRoom(Room roomId);

    Integer findRoomId(Room room1);

    String getRtmpUrlByMeetingId(String id);

    void updateMeetingHot(int id);

    void updateMeetingCold(int id);

    List<Meeting> getHotMeetings();

    int getCount();

    List<Meeting> getAllMeetings();

    int getTimeCount(String start, String end);

    List<Meeting> getMeetingsByTime(int page, int limit, String start, String end);

    void deleteMeetingById(int id);

    int getLiveCount();

    String getRoomIdByMeetingId(String meetingId);

    List<Meeting> getMeetingsByJoin(String userId);

    List<Meeting> getMeetingsByApply(String userId);

    Meeting findMeetingByRoomId(int roomId);

    int updateFavorite(String userId, String meetingId, String flag);

    User_meeting findUserMeetingById(String userId, String meetingId);

    void addUserMeetingFavorite(String userId, String meetingId);

    List<Meeting> getMeetingsByFavorite(String userId);
}
